import React, { Component } from 'react';

class Tesing extends Component {
    handleClick=(e) => {
        // console.dir(e)
        e.stopPropagation()
        // e.preventDefault()
        console.log("111111")
    }
    render() {
        return (
            <div>
                <a href="https://www.baidu.com/" >点击跳转百度</a>
                <button onClick={this.handleClick}>点击触发事件</button>
            </div>
        );
    }
}

export default Tesing;
